<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center publishSubmission_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub publishSubmission_fd0_0'>
          <view class='flex flex-wrap align-center publishSubmission_fd0_0_c0' @tap.stop="handleJumpDiy"
            data-type="back" data-url="1">
            <text class='fu-iconfont2  publishSubmission_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
          </view>
          <view class='flex flex-wrap align-center justify-end publishSubmission_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-center benben-flex-layout publishSubmission_flex_1">
        <image class='publishSubmission_fd1_0' mode="aspectFit" :src='STATIC_URL+"5.png"'></image>
        <text class='publishSubmission_fd1_1'>发布成功</text>
        <!-- <text class='publishSubmission_fd1_2'>平台会在1-2个工作日审核，请耐心等待</text> -->
        <button class='publishSubmission_fd1_3' @click.stop="viewdetailsFunc">查看详情</button>
        <button class='publishSubmission_fd1_4' @tap.stop="toHomeDiy()">返回首页</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "type": "",
        "aid": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        type,
        aid
      } = options
      if (type !== undefined) this.type = type
      if (aid !== undefined) this.aid = aid
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //查看详情
      viewdetailsFunc() {
        if (this.type == '1' || this.type == '2') { //帖子 问答
          this.$urouter.redirectTo(`/pages/shouye/postquestionsDetails/postquestionsDetails?id=${this.aid}`);
        } else if (this.type == '10') { //组局
          this.$urouter.redirectTo(`/pages/zuju/organizationalDetails/organizationalDetails?aid=${this.aid}`);
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .publishSubmission_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .publishSubmission_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .publishSubmission_fd0_0_c0 {
    width: 120rpx;
  }

  .publishSubmission_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .publishSubmission_flex_1 {
    padding: 121rpx 0rpx 0rpx 0rpx;
  }

  .publishSubmission_fd1_4 {
    border: 1px solid rgba(100, 80, 235, 1);
    background: rgba(255, 255, 255, 1);
    border-radius: 36rpx;
    width: 280rpx;
    line-height: 72rpx;
    font-size: 28rpx;
    color: rgba(100, 80, 235, 1);
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .publishSubmission_fd1_3 {
    border: 1px solid rgba(118, 192, 255, 1);
    background: rgba(100, 80, 235, 1);
    border-radius: 36rpx;
    width: 280rpx;
    line-height: 72rpx;
    font-size: 28rpx;
    color: #fff;
    margin: 88rpx 0rpx 0rpx 0rpx;
  }

  .publishSubmission_fd1_2 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 42rpx;
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .publishSubmission_fd1_1 {
    color: #333333;
    font-size: 36rpx;
    font-weight: 700;
    line-height: 42rpx;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .publishSubmission_fd1_0 {
    width: 250rpx;
    height: 180rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }
</style>
